import cv2
image_Color = cv2.imread("12.jpg")
print("显示彩色图像的属性: ")
#显示图像的形状，格式为（垂直像素，水平像素，通道数）
print("shape =",image_Color.shape)
print("size =",image_Color.size)
print("dtype =",image_Color.dtype)
image_Gray=cv2.imread("12.jpg",cv2.IMREAD_GRAYSCALE)
print('读取灰度图像的属性: ')
print("shape =",image_Gray.shape)
print("size =",image_Gray.size)
print("dtype =",image_Gray.dtype)
